#include <main.h>


unsigned int16 main_function = 0;

enum  functions{
function_default = 0,
function_1,
function_2,
function_3,
function_4
} main_function_enum;


void main()
{
unsigned int16 main_temp_gp = 50;


   setup_adc_ports(NO_ANALOGS|VSS_VDD);
   setup_adc(ADC_CLOCK_DIV_2|ADC_TAD_MUL_0);
   setup_spi(SPI_SS_DISABLED);
   setup_wdt(WDT_OFF);
   setup_timer_0(RTCC_OFF);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DIV_BY_1,0,1);
   setup_timer_3(T3_DISABLED|T3_DIV_BY_1);
   setup_ccp1(CCP_PWM_FULL_BRIDGE|CCP_SHUTDOWN_AC_L|CCP_SHUTDOWN_BD_L);
   set_pwm1_duty(2);
   setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
   setup_oscillator(OSC_16MHZ|OSC_INTRC|OSC_31250|OSC_PLL_OFF);

   //TODO: User Code
switch (main_function){
   
   case function_default:
      if(main_temp_gp){
      luces_on();
      delay_ms(main_temp_gp);
      luces_off();
      delay_ms(main_temp_gp);
      }
   break;
   case function_1:
   
   break;
   case function_2:
   
   break;
   case function_3:
   
   break;
   case function_4:
   
   break;

}

}


/*
      void luces_on(void){
      }
      void luces_off(void){
      }
      */
